/* 确保根元素和 body 有完整高度 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.app {
    display: flex;
    height: 100%;
    user-select: none;
    background-color: var(--color-normal-fill);
    box-sizing: border-box;
    overflow: hidden; /* 防止内容溢出 */
}

.left {
    flex: 0 0 20%;
    min-width: 10%;
    border: 2px solid rgb(76, 76, 76);
    box-sizing: border-box; /* 确保边框计入宽度 */
}

.resizer {
    width: 2px;
    cursor: col-resize;
    background-color: rgb(124, 124, 124);
    position: relative;
    z-index: 1; /* 确保拖动条在最上层 */
}

.resizer:hover,
.resizer.dragging {
    background-color: rgb(168, 168, 168);
}

.right {
    flex: 1 1 auto;
    border: 2px solid rgb(76, 76, 76);
    min-width: 30%;
    box-sizing: border-box; /* 确保边框计入宽度 */
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(255, 172, 7);
    color: #000000;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
}